package com.harmontronics.hanma.paas.paas.domain.iam.repository.mapper;

import com.harmontronics.hanma.paas.paas.domain.iam.entity.GroupManageUser;
import com.harmontronics.hanma.paas.paas.domain.iam.repository.po.HmUserGroupManagePO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * ${comments}
 * 
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-07 10:35:20
 */
@Mapper
public interface HmUserGroupManageMapper extends BaseMapper<HmUserGroupManagePO> {

    List<Long> selectGroupIdsWithOrgIdAndUserId(@Param("orgIds") List<Long> orgIds,
            @Param("userId") Long userId);

    List<GroupManageUser> selectGroupManageUserWithGroupId(@Param("groupId") Long groupId);

    List<HmUserGroupManagePO> selectParentUserGroupWithUserIdAndGroupId(
            @Param("userId") Long userId,
            @Param("groupIds") List<Long> groupIds);

    List<Long> selectGroupIdsWithUserId(@Param("userId") Long userId);
	
}
